package com.ticket.sass.provider.service;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;

/**
 * @author ywb
 * @date 2022-09-23 15:07
 */
@Data
@ToString
@ApiModel("页数输入")
public class PageInput {
    @ApiModelProperty(value = "页数")
    @Min(value = 1, message = "页数必须大于等于1")
    private Integer pageNum = 1;

    @ApiModelProperty("每页大小 最大 200 默认 10")
    @Range(max = 200, min = 1, message = "页数大小范围应该在1-200内。")
    private Integer pageSize = 10;
}